<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>hashcat-3.201: H:/TDDownload/Hashcat v3.20/hashcat-3.201/src/cpu_des.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">hashcat-3.201
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_06fe396e3e859736df6d43ad26baa72e.html">hashcat-3.201</a></li><li class="navelem"><a class="el" href="dir_9ce3dfc5d638c7f8b2c4ec0f6627771b.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">cpu_des.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;common.h&quot;</code><br />
<code>#include &quot;types.h&quot;</code><br />
<code>#include &quot;bitops.h&quot;</code><br />
<code>#include &quot;inc_hash_constants.h&quot;</code><br />
<code>#include &quot;inc_hash_functions.cl&quot;</code><br />
<code>#include &quot;cpu_des.h&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for cpu_des.c:</div>
<div class="dyncontent">
<div class="center"><img src="cpu__des_8c__incl.gif" border="0" usemap="#_h_1_2_t_d_download_2_hashcat_01v3_820_2hashcat-3_8201_2src_2cpu__des_8c" alt=""/></div>
<map name="_h_1_2_t_d_download_2_hashcat_01v3_820_2hashcat-3_8201_2src_2cpu__des_8c" id="_h_1_2_t_d_download_2_hashcat_01v3_820_2hashcat-3_8201_2src_2cpu__des_8c">
<area shape="rect"  title=" " alt="" coords="221,5,384,61"/>
<area shape="rect"  title=" " alt="" coords="5,109,88,136"/>
<area shape="rect"  title=" " alt="" coords="113,109,178,136"/>
<area shape="rect"  title=" " alt="" coords="202,109,270,136"/>
<area shape="rect"  title=" " alt="" coords="295,109,444,136"/>
<area shape="rect"  title=" " alt="" coords="468,109,615,136"/>
<area shape="rect"  title=" " alt="" coords="639,109,721,136"/>
</map>
</div>
</div>
<p><a href="cpu__des_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a32009cf6c828eac65c9d48b2a0863cbe"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="cpu__des_8c.html#a32009cf6c828eac65c9d48b2a0863cbe">IS_GENERIC</a></td></tr>
<tr class="separator:a32009cf6c828eac65c9d48b2a0863cbe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1b72f8739ecbe34cff845a70b81b246"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="cpu__des_8c.html#ae1b72f8739ecbe34cff845a70b81b246">BOX</a>(v,  i,  S)&#160;&#160;&#160;(S)[(i)][(v)]</td></tr>
<tr class="separator:ae1b72f8739ecbe34cff845a70b81b246"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a641a7dbedee41c45783ec3fd3e3983a3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="cpu__des_8c.html#a641a7dbedee41c45783ec3fd3e3983a3">_des_keysetup</a> (u32 data[2], u32 Kc[16], u32 Kd[16])</td></tr>
<tr class="separator:a641a7dbedee41c45783ec3fd3e3983a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38d43923d91db31ef4377e82d4de748b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="cpu__des_8c.html#a38d43923d91db31ef4377e82d4de748b">_des_encrypt</a> (u32 data[2], u32 Kc[16], u32 Kd[16])</td></tr>
<tr class="separator:a38d43923d91db31ef4377e82d4de748b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a42409b31947f4df11f6bcbff7d15e5b2"><td class="memItemLeft" align="right" valign="top">static const u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="cpu__des_8c.html#a42409b31947f4df11f6bcbff7d15e5b2">c_SPtrans</a> [8][64]</td></tr>
<tr class="separator:a42409b31947f4df11f6bcbff7d15e5b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a428993f54f3399cb46f65bb6c4bc2f2c"><td class="memItemLeft" align="right" valign="top">static const u32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="cpu__des_8c.html#a428993f54f3399cb46f65bb6c4bc2f2c">c_skb</a> [8][64]</td></tr>
<tr class="separator:a428993f54f3399cb46f65bb6c4bc2f2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="ae1b72f8739ecbe34cff845a70b81b246"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae1b72f8739ecbe34cff845a70b81b246">&#9670;&nbsp;</a></span>BOX</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define BOX</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">v, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">i, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">S&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;(S)[(i)][(v)]</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="cpu__des_8c_source.html#l00015">15</a> of file <a class="el" href="cpu__des_8c_source.html">cpu_des.c</a>.</p>

</div>
</div>
<a id="a32009cf6c828eac65c9d48b2a0863cbe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a32009cf6c828eac65c9d48b2a0863cbe">&#9670;&nbsp;</a></span>IS_GENERIC</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define IS_GENERIC</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Author......: See docs/credits.txt License.....: MIT </p>

<p class="definition">Definition at line <a class="el" href="cpu__des_8c_source.html#l00006">6</a> of file <a class="el" href="cpu__des_8c_source.html">cpu_des.c</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a38d43923d91db31ef4377e82d4de748b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a38d43923d91db31ef4377e82d4de748b">&#9670;&nbsp;</a></span>_des_encrypt()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void _des_encrypt </td>
          <td>(</td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>data</em>[2], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>Kc</em>[16], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>Kd</em>[16]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="cpu__des_8c_source.html#l00387">387</a> of file <a class="el" href="cpu__des_8c_source.html">cpu_des.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;{</div><div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;  u32 r = data[0];</div><div class="line"><a name="l00390"></a><span class="lineno">  390</span>&#160;  u32 l = data[1];</div><div class="line"><a name="l00391"></a><span class="lineno">  391</span>&#160;</div><div class="line"><a name="l00392"></a><span class="lineno">  392</span>&#160;  u32 tt;</div><div class="line"><a name="l00393"></a><span class="lineno">  393</span>&#160;</div><div class="line"><a name="l00394"></a><span class="lineno">  394</span>&#160;  IP (r, l, tt);</div><div class="line"><a name="l00395"></a><span class="lineno">  395</span>&#160;</div><div class="line"><a name="l00396"></a><span class="lineno">  396</span>&#160;  r = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> (r, 3u);</div><div class="line"><a name="l00397"></a><span class="lineno">  397</span>&#160;  l = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> (l, 3u);</div><div class="line"><a name="l00398"></a><span class="lineno">  398</span>&#160;</div><div class="line"><a name="l00399"></a><span class="lineno">  399</span>&#160;  <span class="keywordtype">int</span> i;</div><div class="line"><a name="l00400"></a><span class="lineno">  400</span>&#160;</div><div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;  <span class="keywordflow">for</span> (i = 0; i &lt; 16; i++)</div><div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;  {</div><div class="line"><a name="l00403"></a><span class="lineno">  403</span>&#160;    u32 u = Kc[i] ^ r;</div><div class="line"><a name="l00404"></a><span class="lineno">  404</span>&#160;    u32 t = Kd[i] ^ <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> (r, 28u);</div><div class="line"><a name="l00405"></a><span class="lineno">  405</span>&#160;</div><div class="line"><a name="l00406"></a><span class="lineno">  406</span>&#160;    l ^= <a class="code" href="cpu__des_8c.html#ae1b72f8739ecbe34cff845a70b81b246">BOX</a> (((u &gt;&gt;  2) &amp; 0x3f), 0, <a class="code" href="cpu__des_8c.html#a42409b31947f4df11f6bcbff7d15e5b2">c_SPtrans</a>)</div><div class="line"><a name="l00407"></a><span class="lineno">  407</span>&#160;       | <a class="code" href="cpu__des_8c.html#ae1b72f8739ecbe34cff845a70b81b246">BOX</a> (((u &gt;&gt; 10) &amp; 0x3f), 2, <a class="code" href="cpu__des_8c.html#a42409b31947f4df11f6bcbff7d15e5b2">c_SPtrans</a>)</div><div class="line"><a name="l00408"></a><span class="lineno">  408</span>&#160;       | <a class="code" href="cpu__des_8c.html#ae1b72f8739ecbe34cff845a70b81b246">BOX</a> (((u &gt;&gt; 18) &amp; 0x3f), 4, <a class="code" href="cpu__des_8c.html#a42409b31947f4df11f6bcbff7d15e5b2">c_SPtrans</a>)</div><div class="line"><a name="l00409"></a><span class="lineno">  409</span>&#160;       | <a class="code" href="cpu__des_8c.html#ae1b72f8739ecbe34cff845a70b81b246">BOX</a> (((u &gt;&gt; 26) &amp; 0x3f), 6, <a class="code" href="cpu__des_8c.html#a42409b31947f4df11f6bcbff7d15e5b2">c_SPtrans</a>)</div><div class="line"><a name="l00410"></a><span class="lineno">  410</span>&#160;       | <a class="code" href="cpu__des_8c.html#ae1b72f8739ecbe34cff845a70b81b246">BOX</a> (((t &gt;&gt;  2) &amp; 0x3f), 1, <a class="code" href="cpu__des_8c.html#a42409b31947f4df11f6bcbff7d15e5b2">c_SPtrans</a>)</div><div class="line"><a name="l00411"></a><span class="lineno">  411</span>&#160;       | <a class="code" href="cpu__des_8c.html#ae1b72f8739ecbe34cff845a70b81b246">BOX</a> (((t &gt;&gt; 10) &amp; 0x3f), 3, <a class="code" href="cpu__des_8c.html#a42409b31947f4df11f6bcbff7d15e5b2">c_SPtrans</a>)</div><div class="line"><a name="l00412"></a><span class="lineno">  412</span>&#160;       | <a class="code" href="cpu__des_8c.html#ae1b72f8739ecbe34cff845a70b81b246">BOX</a> (((t &gt;&gt; 18) &amp; 0x3f), 5, <a class="code" href="cpu__des_8c.html#a42409b31947f4df11f6bcbff7d15e5b2">c_SPtrans</a>)</div><div class="line"><a name="l00413"></a><span class="lineno">  413</span>&#160;       | <a class="code" href="cpu__des_8c.html#ae1b72f8739ecbe34cff845a70b81b246">BOX</a> (((t &gt;&gt; 26) &amp; 0x3f), 7, <a class="code" href="cpu__des_8c.html#a42409b31947f4df11f6bcbff7d15e5b2">c_SPtrans</a>);</div><div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;</div><div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;    tt = l;</div><div class="line"><a name="l00416"></a><span class="lineno">  416</span>&#160;    l  = r;</div><div class="line"><a name="l00417"></a><span class="lineno">  417</span>&#160;    r  = tt;</div><div class="line"><a name="l00418"></a><span class="lineno">  418</span>&#160;  }</div><div class="line"><a name="l00419"></a><span class="lineno">  419</span>&#160;</div><div class="line"><a name="l00420"></a><span class="lineno">  420</span>&#160;  l = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> (l, 29u);</div><div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;  r = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> (r, 29u);</div><div class="line"><a name="l00422"></a><span class="lineno">  422</span>&#160;</div><div class="line"><a name="l00423"></a><span class="lineno">  423</span>&#160;  FP (r, l, tt);</div><div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;</div><div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;  data[0] = l;</div><div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;  data[1] = r;</div><div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;}</div><div class="ttc" id="cpu__des_8c_html_a42409b31947f4df11f6bcbff7d15e5b2"><div class="ttname"><a href="cpu__des_8c.html#a42409b31947f4df11f6bcbff7d15e5b2">c_SPtrans</a></div><div class="ttdeci">static const u32 c_SPtrans[8][64]</div><div class="ttdef"><b>Definition:</b> <a href="cpu__des_8c_source.html#l00017">cpu_des.c:17</a></div></div>
<div class="ttc" id="cpu__des_8c_html_ae1b72f8739ecbe34cff845a70b81b246"><div class="ttname"><a href="cpu__des_8c.html#ae1b72f8739ecbe34cff845a70b81b246">BOX</a></div><div class="ttdeci">#define BOX(v, i, S)</div><div class="ttdef"><b>Definition:</b> <a href="cpu__des_8c_source.html#l00015">cpu_des.c:15</a></div></div>
<div class="ttc" id="bitops_8c_html_a6cca97e9410febb66fd3238218978c0f"><div class="ttname"><a href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a></div><div class="ttdeci">u32 rotl32(const u32 a, const u32 n)</div><div class="ttdef"><b>Definition:</b> <a href="bitops_8c_source.html#l00010">bitops.c:10</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="cpu__des_8c_source.html#l00015">BOX</a>, <a class="el" href="cpu__des_8c_source.html#l00017">c_SPtrans</a>, and <a class="el" href="bitops_8c_source.html#l00010">rotl32()</a>.</p>

<p class="reference">Referenced by <a class="el" href="interface_8c_source.html#l03293">netntlmv1_parse_hash()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="cpu__des_8c_a38d43923d91db31ef4377e82d4de748b_cgraph.gif" border="0" usemap="#cpu__des_8c_a38d43923d91db31ef4377e82d4de748b_cgraph" alt=""/></div>
<map name="cpu__des_8c_a38d43923d91db31ef4377e82d4de748b_cgraph" id="cpu__des_8c_a38d43923d91db31ef4377e82d4de748b_cgraph">
<area shape="rect"  title=" " alt="" coords="5,5,105,32"/>
<area shape="rect"  href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f" title=" " alt="" coords="153,5,208,32"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="cpu__des_8c_a38d43923d91db31ef4377e82d4de748b_icgraph.gif" border="0" usemap="#cpu__des_8c_a38d43923d91db31ef4377e82d4de748b_icgraph" alt=""/></div>
<map name="cpu__des_8c_a38d43923d91db31ef4377e82d4de748b_icgraph" id="cpu__des_8c_a38d43923d91db31ef4377e82d4de748b_icgraph">
<area shape="rect"  title=" " alt="" coords="811,5,911,32"/>
<area shape="rect"  href="interface_8c.html#a33a313b0f1a4759adae6773641050056" title=" " alt="" coords="612,5,763,32"/>
<area shape="rect"  href="interface_8c.html#a748d227a9485eb76daa5f1e70ea9badc" title=" " alt="" coords="456,5,564,32"/>
<area shape="rect"  href="hashcat_8c.html#ac33e9695b713153c0fc7cce11696704b" title=" " alt="" coords="325,5,408,32"/>
<area shape="rect"  href="hashcat_8c.html#ac49fece3f82732fda9eb29766cc01168" title=" " alt="" coords="104,5,277,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<a id="a641a7dbedee41c45783ec3fd3e3983a3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a641a7dbedee41c45783ec3fd3e3983a3">&#9670;&nbsp;</a></span>_des_keysetup()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void _des_keysetup </td>
          <td>(</td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>data</em>[2], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>Kc</em>[16], </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">u32&#160;</td>
          <td class="paramname"><em>Kd</em>[16]&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="cpu__des_8c_source.html#l00329">329</a> of file <a class="el" href="cpu__des_8c_source.html">cpu_des.c</a>.</p>
<div class="fragment"><div class="line"><a name="l00330"></a><span class="lineno">  330</span>&#160;{</div><div class="line"><a name="l00331"></a><span class="lineno">  331</span>&#160;  u32 c = data[0];</div><div class="line"><a name="l00332"></a><span class="lineno">  332</span>&#160;  u32 d = data[1];</div><div class="line"><a name="l00333"></a><span class="lineno">  333</span>&#160;</div><div class="line"><a name="l00334"></a><span class="lineno">  334</span>&#160;  u32 tt;</div><div class="line"><a name="l00335"></a><span class="lineno">  335</span>&#160;</div><div class="line"><a name="l00336"></a><span class="lineno">  336</span>&#160;  PERM_OP  (d, c, tt, 4, 0x0f0f0f0f);</div><div class="line"><a name="l00337"></a><span class="lineno">  337</span>&#160;  HPERM_OP (c,    tt, 2, 0xcccc0000);</div><div class="line"><a name="l00338"></a><span class="lineno">  338</span>&#160;  HPERM_OP (d,    tt, 2, 0xcccc0000);</div><div class="line"><a name="l00339"></a><span class="lineno">  339</span>&#160;  PERM_OP  (d, c, tt, 1, 0x55555555);</div><div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;  PERM_OP  (c, d, tt, 8, 0x00ff00ff);</div><div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;  PERM_OP  (d, c, tt, 1, 0x55555555);</div><div class="line"><a name="l00342"></a><span class="lineno">  342</span>&#160;</div><div class="line"><a name="l00343"></a><span class="lineno">  343</span>&#160;  d = ((d &amp; 0x000000ff) &lt;&lt; 16)</div><div class="line"><a name="l00344"></a><span class="lineno">  344</span>&#160;    | ((d &amp; 0x0000ff00) &lt;&lt;  0)</div><div class="line"><a name="l00345"></a><span class="lineno">  345</span>&#160;    | ((d &amp; 0x00ff0000) &gt;&gt; 16)</div><div class="line"><a name="l00346"></a><span class="lineno">  346</span>&#160;    | ((c &amp; 0xf0000000) &gt;&gt;  4);</div><div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;</div><div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;  c = c &amp; 0x0fffffff;</div><div class="line"><a name="l00349"></a><span class="lineno">  349</span>&#160;</div><div class="line"><a name="l00350"></a><span class="lineno">  350</span>&#160;  <span class="keywordtype">int</span> i;</div><div class="line"><a name="l00351"></a><span class="lineno">  351</span>&#160;</div><div class="line"><a name="l00352"></a><span class="lineno">  352</span>&#160;  <span class="keywordflow">for</span> (i = 0; i &lt; 16; i++)</div><div class="line"><a name="l00353"></a><span class="lineno">  353</span>&#160;  {</div><div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;    <span class="keyword">const</span> u32 shifts3s0[16] = {  1,  1,  2,  2,  2,  2,  2,  2,  1,  2,  2,  2,  2,  2,  2,  1 };</div><div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;    <span class="keyword">const</span> u32 shifts3s1[16] = { 27, 27, 26, 26, 26, 26, 26, 26, 27, 26, 26, 26, 26, 26, 26, 27 };</div><div class="line"><a name="l00356"></a><span class="lineno">  356</span>&#160;</div><div class="line"><a name="l00357"></a><span class="lineno">  357</span>&#160;    c = c &gt;&gt; shifts3s0[i] | c &lt;&lt; shifts3s1[i];</div><div class="line"><a name="l00358"></a><span class="lineno">  358</span>&#160;    d = d &gt;&gt; shifts3s0[i] | d &lt;&lt; shifts3s1[i];</div><div class="line"><a name="l00359"></a><span class="lineno">  359</span>&#160;</div><div class="line"><a name="l00360"></a><span class="lineno">  360</span>&#160;    c = c &amp; 0x0fffffff;</div><div class="line"><a name="l00361"></a><span class="lineno">  361</span>&#160;    d = d &amp; 0x0fffffff;</div><div class="line"><a name="l00362"></a><span class="lineno">  362</span>&#160;</div><div class="line"><a name="l00363"></a><span class="lineno">  363</span>&#160;    u32 s = <a class="code" href="cpu__des_8c.html#ae1b72f8739ecbe34cff845a70b81b246">BOX</a> ((( c &gt;&gt;  0) &amp; 0x3f),  0, <a class="code" href="cpu__des_8c.html#a428993f54f3399cb46f65bb6c4bc2f2c">c_skb</a>)</div><div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;          | <a class="code" href="cpu__des_8c.html#ae1b72f8739ecbe34cff845a70b81b246">BOX</a> ((((c &gt;&gt;  6) &amp; 0x03)</div><div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;                | ((c &gt;&gt;  7) &amp; 0x3c)), 1, <a class="code" href="cpu__des_8c.html#a428993f54f3399cb46f65bb6c4bc2f2c">c_skb</a>)</div><div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;          | <a class="code" href="cpu__des_8c.html#ae1b72f8739ecbe34cff845a70b81b246">BOX</a> ((((c &gt;&gt; 13) &amp; 0x0f)</div><div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;                | ((c &gt;&gt; 14) &amp; 0x30)), 2, <a class="code" href="cpu__des_8c.html#a428993f54f3399cb46f65bb6c4bc2f2c">c_skb</a>)</div><div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;          | <a class="code" href="cpu__des_8c.html#ae1b72f8739ecbe34cff845a70b81b246">BOX</a> ((((c &gt;&gt; 20) &amp; 0x01)</div><div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;                | ((c &gt;&gt; 21) &amp; 0x06)</div><div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;                | ((c &gt;&gt; 22) &amp; 0x38)), 3, <a class="code" href="cpu__des_8c.html#a428993f54f3399cb46f65bb6c4bc2f2c">c_skb</a>);</div><div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;</div><div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;    u32 t = <a class="code" href="cpu__des_8c.html#ae1b72f8739ecbe34cff845a70b81b246">BOX</a> ((( d &gt;&gt;  0) &amp; 0x3f),  4, <a class="code" href="cpu__des_8c.html#a428993f54f3399cb46f65bb6c4bc2f2c">c_skb</a>)</div><div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;          | <a class="code" href="cpu__des_8c.html#ae1b72f8739ecbe34cff845a70b81b246">BOX</a> ((((d &gt;&gt;  7) &amp; 0x03)</div><div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;                | ((d &gt;&gt;  8) &amp; 0x3c)), 5, <a class="code" href="cpu__des_8c.html#a428993f54f3399cb46f65bb6c4bc2f2c">c_skb</a>)</div><div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;          | <a class="code" href="cpu__des_8c.html#ae1b72f8739ecbe34cff845a70b81b246">BOX</a> ((((d &gt;&gt; 15) &amp; 0x3f)), 6, <a class="code" href="cpu__des_8c.html#a428993f54f3399cb46f65bb6c4bc2f2c">c_skb</a>)</div><div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;          | <a class="code" href="cpu__des_8c.html#ae1b72f8739ecbe34cff845a70b81b246">BOX</a> ((((d &gt;&gt; 21) &amp; 0x0f)</div><div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;                | ((d &gt;&gt; 22) &amp; 0x30)), 7, <a class="code" href="cpu__des_8c.html#a428993f54f3399cb46f65bb6c4bc2f2c">c_skb</a>);</div><div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;</div><div class="line"><a name="l00379"></a><span class="lineno">  379</span>&#160;    Kc[i] = ((t &lt;&lt; 16) | (s &amp; 0x0000ffff));</div><div class="line"><a name="l00380"></a><span class="lineno">  380</span>&#160;    Kd[i] = ((s &gt;&gt; 16) | (t &amp; 0xffff0000));</div><div class="line"><a name="l00381"></a><span class="lineno">  381</span>&#160;</div><div class="line"><a name="l00382"></a><span class="lineno">  382</span>&#160;    Kc[i] = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> (Kc[i], 2u);</div><div class="line"><a name="l00383"></a><span class="lineno">  383</span>&#160;    Kd[i] = <a class="code" href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a> (Kd[i], 2u);</div><div class="line"><a name="l00384"></a><span class="lineno">  384</span>&#160;  }</div><div class="line"><a name="l00385"></a><span class="lineno">  385</span>&#160;}</div><div class="ttc" id="cpu__des_8c_html_a428993f54f3399cb46f65bb6c4bc2f2c"><div class="ttname"><a href="cpu__des_8c.html#a428993f54f3399cb46f65bb6c4bc2f2c">c_skb</a></div><div class="ttdeci">static const u32 c_skb[8][64]</div><div class="ttdef"><b>Definition:</b> <a href="cpu__des_8c_source.html#l00173">cpu_des.c:173</a></div></div>
<div class="ttc" id="cpu__des_8c_html_ae1b72f8739ecbe34cff845a70b81b246"><div class="ttname"><a href="cpu__des_8c.html#ae1b72f8739ecbe34cff845a70b81b246">BOX</a></div><div class="ttdeci">#define BOX(v, i, S)</div><div class="ttdef"><b>Definition:</b> <a href="cpu__des_8c_source.html#l00015">cpu_des.c:15</a></div></div>
<div class="ttc" id="bitops_8c_html_a6cca97e9410febb66fd3238218978c0f"><div class="ttname"><a href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f">rotl32</a></div><div class="ttdeci">u32 rotl32(const u32 a, const u32 n)</div><div class="ttdef"><b>Definition:</b> <a href="bitops_8c_source.html#l00010">bitops.c:10</a></div></div>
</div><!-- fragment -->
<p class="reference">References <a class="el" href="cpu__des_8c_source.html#l00015">BOX</a>, <a class="el" href="cpu__des_8c_source.html#l00173">c_skb</a>, and <a class="el" href="bitops_8c_source.html#l00010">rotl32()</a>.</p>

<p class="reference">Referenced by <a class="el" href="interface_8c_source.html#l03293">netntlmv1_parse_hash()</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="cpu__des_8c_a641a7dbedee41c45783ec3fd3e3983a3_cgraph.gif" border="0" usemap="#cpu__des_8c_a641a7dbedee41c45783ec3fd3e3983a3_cgraph" alt=""/></div>
<map name="cpu__des_8c_a641a7dbedee41c45783ec3fd3e3983a3_cgraph" id="cpu__des_8c_a641a7dbedee41c45783ec3fd3e3983a3_cgraph">
<area shape="rect"  title=" " alt="" coords="5,5,116,32"/>
<area shape="rect"  href="bitops_8c.html#a6cca97e9410febb66fd3238218978c0f" title=" " alt="" coords="164,5,219,32"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="cpu__des_8c_a641a7dbedee41c45783ec3fd3e3983a3_icgraph.gif" border="0" usemap="#cpu__des_8c_a641a7dbedee41c45783ec3fd3e3983a3_icgraph" alt=""/></div>
<map name="cpu__des_8c_a641a7dbedee41c45783ec3fd3e3983a3_icgraph" id="cpu__des_8c_a641a7dbedee41c45783ec3fd3e3983a3_icgraph">
<area shape="rect"  title=" " alt="" coords="811,5,921,32"/>
<area shape="rect"  href="interface_8c.html#a33a313b0f1a4759adae6773641050056" title=" " alt="" coords="612,5,763,32"/>
<area shape="rect"  href="interface_8c.html#a748d227a9485eb76daa5f1e70ea9badc" title=" " alt="" coords="456,5,564,32"/>
<area shape="rect"  href="hashcat_8c.html#ac33e9695b713153c0fc7cce11696704b" title=" " alt="" coords="325,5,408,32"/>
<area shape="rect"  href="hashcat_8c.html#ac49fece3f82732fda9eb29766cc01168" title=" " alt="" coords="104,5,277,32"/>
<area shape="rect"  href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627" title=" " alt="" coords="5,5,56,32"/>
</map>
</div>

</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a id="a428993f54f3399cb46f65bb6c4bc2f2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a428993f54f3399cb46f65bb6c4bc2f2c">&#9670;&nbsp;</a></span>c_skb</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const u32 c_skb[8][64]</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="cpu__des_8c_source.html#l00173">173</a> of file <a class="el" href="cpu__des_8c_source.html">cpu_des.c</a>.</p>

<p class="reference">Referenced by <a class="el" href="cpu__des_8c_source.html#l00329">_des_keysetup()</a>.</p>

</div>
</div>
<a id="a42409b31947f4df11f6bcbff7d15e5b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a42409b31947f4df11f6bcbff7d15e5b2">&#9670;&nbsp;</a></span>c_SPtrans</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const u32 c_SPtrans[8][64]</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="cpu__des_8c_source.html#l00017">17</a> of file <a class="el" href="cpu__des_8c_source.html">cpu_des.c</a>.</p>

<p class="reference">Referenced by <a class="el" href="cpu__des_8c_source.html#l00387">_des_encrypt()</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
